package guda.screenshot;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.InputStream;

/**
 * Created by well on 2014/12/30.
 */
public class IconLoader {


    public static  BufferedImage image;

    public static BufferedImage getIconImage(){
        if(image == null){
            init();
        }
        return image;
    }

    public static void init(){
        try {
            InputStream resourceAsStream = IconLoader.class.getClassLoader().getResourceAsStream("icon.png");
            image = ImageIO.read(resourceAsStream);

        } catch (Exception e) {

        }
    }
}
